adjust set_capacity timing