convert the bottom part of the top curve to a straight line