translated the new code