added windows to 9 function