added support for size of returned records