caught an error in grad L2 error