added dir in f(ind)