fixing inclusive behavior of range