added scoring feature