add documentation for match_to