use the correct var type for 8/16/32