change interval to intervals