1. step for rezise windows