+                if (temp.empty())
                      return;
theres a check above