added longfront gamma function