upsert is working