nested function; closures vs normal functions