changed scoring method