major changes -- added pressure alg