resize first
