made mc a var in if