fix unused variable warning