remove out-dated code.