remove useless commands