unset vars after function exit