set_size method