Removed redundant code'