row wise update