fixed irregularity in readFile