mmc working (dirty code)