map as optional second argument to update