minor changes on disp_cmd