reordering of graphs; better code readability