add new tips for dirname