added function for language discovery