added new functions to get the correct discretized gamma rates