changes to report redirect function