correctly reformates the folder structure