removed unrelated codes