added setText method to text object
after merge