work on report, add some functions and use them