set attrib functions