Removed redundant code def