changes for reading files