fix unused var compile warning