add margin when send data to server