remove resize code