- fixed range function