debugging averaging and scoring