removed old version of interp, added variable definition code.