update extreme point function