changed fmmdemag a lot