adding temporary/backup file cleaning function