compiling block code with span library