added one more check.  it seems to be crashing calculating the dimension of the hilbert space....