added tranlation code