update & insert works