the part of resize