var total declared and assigned