span parsing