modifed to use '_id' rather than nqf_id