created windows to 9 function