update intervalNum when rehearse