to assign a score