changed if statments around send functions to properly reflect their return values