remove singleton mode to corresponding file