refactoring merchant revenue :)