Wrote translate method