extract method for getting the flagged oids