implement some attr()