actually calculate gamma, eh?