takes both start and end numbers