removed unnecessary allocation in receiverthread