changed periodicity_end to nb_repetition in form