Tested: constant values (made them into variables, tested for ranges). slight increase in efficiency