text function added