break infinite recursion