update min mer, add fg and bg to parameters