simplified switch in insertion