some changes about update and command