simplifying matching example