add node gathering method