change to not match end interval