removing unused variables in gammaln