added missing grad_h