add integrate period algorithm