a scoring function that actually works