switching from attr to prop