update reports generation code