add function pointToText