translate functions and classes