add periodic-seq with an end