updated scoring mechanism