updated code for reports