removed unused code and updated bounds syntax on window create