rework scores function for updating