refactoring way to get languages in helpers