changed to resize_to_fit