removed max recursion depth code from feature adaptive code