removed old resize code