added receiver function
updated receiver