bwmatching outline