update
graph
sort functions