limit batch size