added check for translation switching