small changes to try to improve performance of flat top gaussians