started tr for function calls
function calling nearly done