First rotation logic