not fully working fixes for gamma