avoid compiler warning on variable def