added selector for interval and unit