updated Receive.java