#330: added inserting of new nodes