better inheritance of attributes