prepate time step 3 : find repeat patterns