double writing output AI