fixed the reversal. Couldn't tell you why though, just copying what I was told to do years ago