simplified, with max and min pos