add isIn and matches