operating alternately