update logic in place --KW