small change to upsert post