updated with score working