fixed bug in EstDim, but still not done...