added buggy insert method