updating doTurn()
merge head fix