correcting misinterpretation of upsert