script to work with sentences