optimize function to show report - refs BT#8296