made resize work