modify folder structure (by type)