updated preInserter so works better.