added size calcluation during ingest