add refs of attribute and block