added turning functions

added turning functions