fix up inserts