left and revert index