working on ranges