remove some unused functions