remove MainCt ref