changing file structure to prepare for saving