properly generate multiple worksheets

More readable code