removed little bug for choosing first extrem point