made discretizeGamma function be median=false by default