added the change period feature, but algorithm not implemented