todo note
minor
try to narrow intervals to constants
small fix