changes to win code