modify dir struct