putting data in csv so we keep the ids