corrected the reading files linking