added compAttr.r