first void implemenation of cmd_update