fixing unused variable