fix range bug (range is start..end+1 like a for loop not like a range from any other language i hate python)