maxdepth as param