remove dirname