added create node method