change format of input file to x y z type