override receive function
Merge branch 'rate-hybrid' of https://github.com/aomanaloto1/thesis-code into rate-hybrid