added translation functionality