do not assume end and reset