remove useless instrcutions