removed old insertion code