coalesce the "undefined" calls into constructor-looking functions
insert and delete are now written