initialize text buffer