updating scoring algorithm