add window functions.