added gamma feature