chnage mic variablie to grobal becasue of gc