changes to Translate method & main