cleaning up, changed from sizeof to strlen when sending data