create lnextinst the heart of the program