change windows func