refactored logic out to make code more clear
Merge pull request #92 from trayo/refactoring_most_items_and_rev

refactored logic out to make code more clear