template repeat version