fix defined but not used error