added some text funtions