prepare to add updateText function