use exception in matches