deal with periodic data in a very basic way