not working. Weird errors in parse_node()