make section count zero-based