changed min, max and target to less, greater and equal, respectively