modified data according to graph