make var private and explicitly initialize to 0