Remove maxloc as it was only needed for the graph
calculate real loc