changed generate to compute