implemented cta in text io