change interval to an int