re-arrange method calling, remove createNodes()