Creating translation table