remove calling cat to read a file