update avoid-creating-unnecessary-objects