finish record counted or uncounted labruns function