start of resize script