changed max range param to 10