changed how input file is read. SHIT STILL DON'T WORK