changes required attributes