change read_file_location method