wrap code in immediately executed function - #11