added gamma method