replacing getSome and skipSome methods for limit block with getOrSkipSome
method.