changed mod to shift left in extracting the nonzero taxonomy