semicolon should be comma; otherwise we make win a global variable.