added function for words cut