fix limits of input to 5-140