transform as key pair