add required attr