custom report tat query change