fixed problems with diam