change dir struct