addNodes uses input validation