added windows for functions 13 - 16