try catch added for reciever