added text renderin functions