use length instead of getsizeof