fixes to window size and block size