preparation for saving from csv