Changing the translate method