improved slope following in cases where there are multiple slopes