revert legend