add a assistant edit function