updated the if else clause

the receive and send rules are fine now