simplify auto-update with lambdas