var: getText function added