refactor ">> $tempfile" to the new report() form