remove useless instruction