added functions push_to_nodes and pull_from_nodes