gradm problem