renamed loop to graph everywhere
renamed loop to graph everywhere