this is a fancy way of writing wb.on('end', end);