removes useless statement