updates to code to make it run multilingual