second commit:use insert() instead of insertFirst() and insertSecond()