revert B-J swap