smg code