preparations to render text