infinite recursion in paths?