Deleted Redundant code