change the function name of the preiodic demo