changing the rotational direction alternately