changed from count to len