added putting text functionality