added turn switching