optimze time interval setting