I think you should take into account the step of the range in here as well...