isending and receiving not working