replace basename by topic in filename