fixed another design flaw in insertion