added a few more function headers, and added to the body of the turning functions