fixed scoring algorithm