add function to exchange