delete redudant code