MINOR

pass in global into immediate function, single var pattern