made multiple instances of pattern matcher possible