change directories struct