modified file output, added results