removed polluting vars c & m from global space