fix unused type and variable warning