add definition of interval and modify middle interval value