moved turning function to main library