turning functions