adds ranking logic