added function to set text