removing resize function