change get text function