basic reciever code added