change attr to prop