update querying for barrel