better attribute retrieval