adding support for window size