reverted change in translate function example due to extra credit