fine tuning of the graph function