updated score functions