sanity check of resize method