revise ovenWin fuction