adding normalisation functions to graph drawing