modify get mcc function