fixed unused variable error