refactoring done, text-mode's placeholder updated