changed from count to size