remove some unused codes