work on ranges