revert works properly now