made the light attributes optional on update