add the repeat feature