send ; at the end of text automatically. removed uneeded functions