amend arg type to match_type