implement $setOnInsert