finding turning point