added text functionality