wrote method to read in senders data