added check for empty groups in typprobClass and covW