updated receive method for new updated send method