first draft of translate with functions created