change out to isDir from dir