fixed unused var warning