add scoring functionality