added time-based rules