using 'properties' and 'items'