finish translate code