generate sentence function is next