don't call print_match every time