added totally untested turning code