fixend naming bug.
added total size to output