fix unused code warning