prevent too low or high of values from going thru hdx equation