lin and win generation