made preparations for file reading