moved attribute lookup to use dataset