add cond-ast and dynamically resize tree