add call graph for function (not finished)