add interval as an option