add required attributes