initialize total