added apriori computations