Use capacity() instead of limit() because it's always capacity() == limit() in this case