added an error message for not enough valid sentences