adding initial stages for better window resizing