fix unused variable warning during compilation