first scan two dirs then scan only horizatial

first scan two dirs then scan only horizatial