fix unused var warning