add some required attributes