wrapper returns summary to a function