added setAttrs