add method for node