fixing dir struct