moved score-based changes to its own function, minor other changes