bugfix
add window stretch method