(issue #3910) abstract results visibility to functions
(issue #3910) fix copy/paste error