example reporting - refactored