working on recursive directory checking