added blank lines around enclosed function definitions