score handling added