fixing the interval to be an integer and not a number