handling pass matching error