minor var fixes