added option to use constant sigma_g