add restriction function

No match.