add cases for match