finish code translation