minor change in bcd_input