use opt->length[0] + opt->length[1] + opt->is_inner