removal of upsert2 function