removed zero_input to avoid p2c bug