add resource attribute