using a component object to set properties