mapping window size changing, a huge waste of time