still fixing turn flag