add function reverse relays