add "trans" function support