we dont need <next>0</next> for end