change dir structor