working on evaluation of interval