optimizations to colspan handling