added score counting