updated to remove the sleep in the last send