cleaned the generators so that they take the formula as a ref. parameter