now using outfile