transmit function for distribution