modified capture code, removed idea and out files