fixed unused variable.