work on initTextPointer