bug in input