update with for '-y' option