add gamma computation