add types to properties and attributes