bug is found! add_gamma_type is correct! efficiency is not good...