adding language function