gradm in learning mode - problem