some prototype resizing width and height code