change setTextContext function