use seperate function to define updatePeriod parameters, issue #19