increased smoothness of dip calculation