updating window functions