checked mistakes in distributions, done multindex with 3 levels for tables , function for summary tables'