error debug for AH