remove unrelated codes