changed pizza alg