stable pml
gradient test passes