now turning points are all detected