modified version of diagramme.m, including tau