turn code works a little bit