implementation of sound in wrong matching