insert seems to work for c++ code