correcting xyz format