more work on span tree