adding const to attribute ptrs