fixed hack in put number in range funct
fixed hack in put number in range funct