Issues with multiple directories resolved
removed var_dump