adding text mode