adjust color and interval