correctly exchanged the keys