break conditions are added for language detection