remove some 'foo is defined but never used'