testing for and fixing issue with infinite recursion