started translation

added some logic for translation