simplifying code with ranges