using gammma for the last block