add attributes property

you can use attribute property to implement more functions