window code update