attr instead of attrlist and fix