createNode method added