added add attribute method