functions to collect a summary of a chain