updated width and height