working with function translate