added fixed point input code