function creating lp file not finished