function out of scope