added delay to turn functions