usage: define a type for a reporting function