changed node to edge