removed old classification of receiver_id as unusued. also removed thread variable allocation as it remains unusued.