add X and Y data in csv files