borderless window test
code beautification