update interval

should change portocol.intervals to array instead of map