replaces key by trans_key