added span reduction fix