use setProperties when setting multiple properties in one go