limit batch size, prevent duplicate adding