remove error in some unused code