add uniform interval function