rm last window size memory, add comments