implemented change_size