set interval for stream