fix some unused variable warnings