update, using built-in functions