adding lgamma include back into generator to resolve ambiguity