substitutes object.find_by_primary_id with find_by_ark