fixed unused code