segmentCount too large. there's a bug
fix some bugs. there are more