should return zero if there is no input