modularized rating algorithms