fixed renaming and deleting