solved the update-values puzzle