reinitialize vars to zero