added error assignment on while writing to network