generate pass instead of None for empty blocks