refactor to node style