using collection name as attribute