refactory of leftturn and righturn