changed the size of the rect