fix for recurse