debugging matching