add properties to struct by var