turns logic