another convenient method, plus fixes to the insertion methods