add repeat attribute functionality