it can read in file content properly