implemented 'REPORT function