fix 128
change period of course function