add end interval, adjust