delete Redundant code