adherence table changed to work with remote data structure