added blank lines around enclosed function definition