some changes to textrender