achieved 1.0 mrr performance.  Refactored code