renaming files appropriately