don't match features recursively in outer loop