removing useless instruction