working intial resize