can't figure out the file reading error. so weird!