updated for use with textview