manage readonly in update