export logic of score to scores_helper