partially implemented translatedcode