turn from and to to names