compute scores method added