new function ai_variants_free