final
count of repetition implemented