add interval to global object