added func 4 windows