Removed redundant code from data repeat