resize function removed