inrange and freeze