adding phrase ranker
ranker file refactored