add translation func