receive side of code is working