debugging group matrix