remove unnecessary directory from search