use pattern for dir()