setup insert method with switch/case