proper use of {}.update