add repeat feature to array