added tipo to query in get_new_nodes method