implementing scoring