range simplifying added