better attribute creation