sending and receiving rules finished