simplified update fnctn