adding wining condition