Resizing and matricies