modifiy score_query