add window fuction support.