Redundant code removed

Removed redundant code