fix unused code