add some code for report