updating for WSN