cleaned up datum dimension functions