-changed logic of manipulating height (max and min value range)