save local maxima of posteriors