figured out the end of each entry