restricts level values to range of 1-250