updates main program for text::object