remove unused variable
fix the compiler error