rename some variables and functions for graph looping to make it better understandable