added diag to functions table