added min and max range