some work on the attribute table