update put method