expanded the cords to text function